import request from '@/utils/request'

// 新增加班规则
export function ruleAdd(data = {}) {
  return request({
    url: '/workbench/attend-rule/create',
    method: 'post',
    data: data
  })
}
// 加班规则删除
export function ruleDel(data = {}) {
  return request({
    url: '/workbench/attend-rule/remove',
    method: 'get',
    params: data
  })
}
// 修改加班规则
export function ruleEdit(data = {}) {
  return request({
    url: '/workbench/attend-rule/update',
    method: 'post',
    data: data
  })
}
// 加班规则详情
export function ruleDtl(data = {}) {
  return request({
    url: '/workbench/attend-rule/detail',
    method: 'get',
    params: data
  })
}
// 加班规则列表
export function ruleList(data = {}) {
  return request({
    url: '/workbench/attend-rule/list',
    method: 'get',
    params: data
  })
}
